package com.wolf.service.impl;

import com.wolf.pojo.Wl_banner;
import com.wolf.repository.Wl_bannerMapper;
import com.wolf.service.Wl_bannerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class Wl_bannerServiceImpl implements Wl_bannerService {

    @Autowired
    public Wl_bannerMapper wl_bannerMapper;

    public void setWl_bannerMapper(Wl_bannerMapper wl_bannerMapper) {
        this.wl_bannerMapper = wl_bannerMapper;
    }

    @Override
    public int deleteByPrimaryKey(String id) {
        return wl_bannerMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Wl_banner record) {
        return wl_bannerMapper.insert(record);
    }

    @Override
    public int insertSelective(Wl_banner record) {
        return wl_bannerMapper.insertSelective(record);
    }

    @Override
    public Wl_banner selectByPrimaryKey(String id) {
        return wl_bannerMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(Wl_banner record) {
        return wl_bannerMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Wl_banner record) {
        return wl_bannerMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<Wl_banner> getAll() {
        return wl_bannerMapper.getAll();
    }

    @Override
    public List<Wl_banner> getSelective(Integer channel, Integer status, String bannername, String starttime, String endtime) {
        return wl_bannerMapper.getSelective(channel,status,bannername,starttime,endtime);
    }
}
